home *** CD-ROM | disk | FTP | other *** search
/ Ahoy 1987 May / Ahoy_Magazine_87-05_1987_Double_L_Side_B.d64 / read dir.txt < prev    next >
Text File  |  2022-10-26  |  1KB  |  42 lines

  1. READ DIRECTORY
  2.  
  3. by David Stidolph
  4.  
  5. This COMAL 0.14 program can be used
  6. to read a disk directory. The program
  7. prints the directory to the screen or
  8. to a printer. The program uses the
  9. read'block and disk'get'init
  10. procedures from COMAL Today #15. The
  11. information needed for the
  12. get'entries procedure is contained in
  13. the article, Unscratching Files in
  14. COMAL Today #13. It isn't hard to
  15. write a new program when most of the
  16. work has been done for you. All you
  17. need to do find out what procedures
  18. are available, and then practice
  19. putting them together.
  20.  
  21. This directory program is not as
  22. versatile as directory'probe from
  23. Today Disk #13, but it has a few
  24. advantages of its own. If you only
  25. need a print out of a disk directory,
  26. this program is shorter and easier to
  27. use. This program may also be adapted
  28. for other uses. All the directory
  29. entries are stored in an array. You
  30. could write a routine to see if a
  31. particular program is on a disk by
  32. comparing file names to the one you
  33. are looking for. You could write
  34. routines to sort the names or to list
  35. all files of a given type. You could
  36. even store the file names on a disk
  37. to keep track of which programs are
  38. on which disks. Of course most of
  39. this work has been done for you too.
  40. It is in the book/disk set, Captain
  41. COMAL Gets Organized.
  42.